<!DOCTYPE html>
<html lang="en">
<head>
    <title>
        @using Benecura.Interfaces.Web.Classes.Helper.Extensions
        @Url.GetAppName() > @Url.GetRouteValue("controller")
        > @Url.GetRouteValue("action")
    </title>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width" />
    <link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
    <link href="@System.Web.Optimization.BundleTable.Bundles.ResolveBundleUrl("~/Content/Core")" rel="stylesheet" type="text/css" />
    <link href="@System.Web.Optimization.BundleTable.Bundles.ResolveBundleUrl("~/Content/Plugins")" rel="stylesheet" type="text/css" />
    <link href="@System.Web.Optimization.BundleTable.Bundles.ResolveBundleUrl("~/Content/Custom")" rel="stylesheet" type="text/css" />
</head>
<body>
    <div data-role="page" data-theme="c" data-fullscreen="false">
        <div data-role="header" data-theme="b" data-position="fixed">
            <h1>@ViewBag.Title</h1>
            @if (IsSectionDefined("CustomNav"))
            {
                @RenderSection("CustomNav")
            }
            else
            {
                @Html.ActionLink("Help", "Help", "Home", null, new { data_icon = "info" })
                @Html.ActionLink("Home", "Index", "Home", null, new { data_icon = "home" })   
            }
            @if (IsSectionDefined("PageNav"))
            {
                @RenderSection("PageNav")
            }
        </div>
        <div data-role="content" id="divContent">
            @RenderBody()
        </div>
        <div id="footer" data-role="footer" data-position="fixed" data-theme="b">
            @Html.Partial("_LoginPartial")
        </div>
    </div>
    <div id="script">
        <script src="@System.Web.Optimization.BundleTable.Bundles.ResolveBundleUrl("~/Scripts/Core")" type="text/javascript"></script>
        <script src="@System.Web.Optimization.BundleTable.Bundles.ResolveBundleUrl("~/Scripts/Plugins")" type="text/javascript"></script>
        <script src="@System.Web.Optimization.BundleTable.Bundles.ResolveBundleUrl("~/Scripts/Custom")" type="text/javascript"></script>
    </div>
</body>
</html>
